package org.datacoder.geocoding.jurisdiction

/**
 * A state representative district (Nebraska does not
 * have these).  Belongs to a state.
 */
class RepresentativeDistrict extends Jurisdiction{

    State state

    static belongsTo = [state:State]

    public static String retrieveShortName(){
        return "RepDist"
    }
    public String toString(){
        com.vividsolutions.jts.geom.Point point = getMultiPolygon().getCentroid()
        return "RepresentativeDistrict--Name: ${name}; Lat/Long: (${point.getY()}, ${point.getX()})"
    }

}

